<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="/WEB-INF/mytag.tld" prefix="f"%>
<%@page import="com.wy17113.model.entity.*"%>
<%@page import="com.wy17113.model.service.*"%>
<%@page import="org.springframework.web.context.WebApplicationContext"%>
<%@page import="org.springframework.web.context.support.WebApplicationContextUtils"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";	
	
	WebApplicationContext webContext = WebApplicationContextUtils
				.getRequiredWebApplicationContext(application);
	IJokService joks = (IJokService) webContext.getBean("jokService");
	
	Jok jok = joks.getJokById((String)request.getParameter("id"));
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
	<HEAD>
		<base href="<%=basePath%>">
		<TITLE>北京 17113.cc</TITLE>
		<META http-equiv=Content-Type content="text/html; charset=gb2312">
		<LINK href="css/style.css" type=text/css rel=stylesheet>
		<script language="javascript" src="admin/js/calander.js"></script>
<SCRIPT>

</SCRIPT>
		<META content="MSHTML 6.00.3790.2440" name=GENERATOR>
	</HEAD>
	<BODY text=#000000 bgColor=#ffffff leftMargin=0 topMargin=7>
		<TABLE cellSpacing=0 cellPadding=0 width=800 align=center border=0>
			<TBODY>
				<TR>
					<TD align="center">						
						<IMG height=59 src="admin/img/logo-r.gif">
					</TD>
				</TR>
				<TR>
					<TD vAlign=top background=images/list-bg.jpg>
						<BR>
						<BR>
						<TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>	
								<TR>
									<TD>
										<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
												<TR>
													<td colspan=2 align="center" bgColor=#b4b4b4 height=24>
														<font size="3">笑话/人生语录 编辑</font>																					
													</td>
													<td align="center" bgColor=#b4b4b4 height=24>
														<font size="3"><a href="/doJok.do?opers2=getAllJok&type=0">返回</a></font>																					
													</td>
												</TR>												
										</TABLE>
									</TD>
								</TR>
								<TR>
									<TD>
									<form action="/doJok.do?opers2=edit" method="post">
										<TABLE cellSpacing=0 cellPadding=1 width="100%" border=1>
											<TBODY>
												<TR>
													<TD class=text bgColor=#eff8e0 height=25>
														类型：
														<select id="type" name="type">
															<option value="1" <%if(jok.getType() == 1){%>selected<%} %>>
																笑 话
															</option>
															<option value="2" <%if(jok.getType() == 2){%>selected<%} %>>
																人生语录
															</option>
														</select>
													</TD>
												</TR>
												<TR>
													<TD class=text bgColor=#eff8e0 height=25>
														标题：
														<input type="text" name="title" id="title" size="80"  value="<%=jok.getTitle() %>"/>
													</TD>
												</TR>
												<TR>
													<TD class=text bgColor=#eff8e0 height=25>
														内容：
														<br />
														<textarea rows="40" cols="80" name="content" id="content"><%=jok.getContent() %></textarea>
													</TD>
												</TR>
												<TR>
													<TD class=text bgColor=#eff8e0 height=25>
														&nbsp;
													</TD>
												</TR>
												<TR align="center">
													<TD class=text bgColor=#eff8e0 height=25>
														<input type="hidden" name="id" value="<%=jok.getId() %>"/>
														<input type="hidden" name="ding" value="<%=jok.getDing() %>"/>
														<input type="hidden" name="cai" value="<%=jok.getCai() %>"/>														
														<input type="submit" value="提  交"/>
													</TD>
												</TR>
											</TBODY>
										</TABLE>
									</form>
								</TD>
								</TR>														
						</TABLE>
						<BR>
					</TD>
				</TR>
			</TBODY>
		</TABLE>	
		<TABLE cellSpacing=0 cellPadding=5 width=800 align=center border=0>
			<TBODY>
				<TR>
					<TD bgColor=#b4b4b4 height=10>
						&nbsp;
					</TD>
				</TR>
				<TR>
					<TD align="center">
						版权所有®2011 北京17113.cc. 保留所有权利. 冀ICP备11028198号
					</TD>
				</TR>
			</TBODY>
		</TABLE>
	</BODY>
</HTML>